<template>

  <scroll class="scroll" ref="scroll">
    <div>
      <cart-list-item
        v-for="item in cartList"
        :key="item.iid"
        :itemInfo="item"
      ></cart-list-item>
    </div>
  </scroll>

</template>

<script>
import Scroll from "../../../components/common/scroll/Scroll.vue";
import CartListItem from "./CartListItem.vue";
export default {
  components: { Scroll, CartListItem },
  props: {
    cartList: {
      type: Array,
      default() {
        return [];
      }
    }
  },
  methods: {
    scrollrefresh() {
      this.$refs.scroll.refresh();
    }
  }
};
</script>

<style>
.scroll {
  overflow: hidden;
  height: calc(100% - 49px - 44px - 30px);
}
</style>
